package transaction.lcn.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import transaction.lcn.common.entity.Result;

@FeignClient(name = "lcn-storage")
public interface StorageFeign {

    @GetMapping("/lcn/storage/deduct")
    Result deduct(@RequestParam String commodityCode, @RequestParam Integer orderCount);

}
